package cn.damai.mine.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ExecutorUtil {
	private ExecutorService executorService;
	private int count;
	public ExecutorUtil(){}
	public ExecutorUtil(int count){
		setExecutorService(Executors.newFixedThreadPool(count));
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public ExecutorService getExecutorService() {
		return executorService;
	}
	public void setExecutorService(ExecutorService executorService) {
		this.executorService = executorService;
	}
}
